package org.ali.creationalpattern.abstractfactorypattern.factory;

/**
 * 超级工厂
 */
public class SuperFactory {
    public static Factory getFactory(String message) {
        return switch (message) {
            case "Color" -> new ColorFactory();
            case "Shape" -> new ShapeFactory();
            default -> null;
        };
    }
}
